package com.study.scala

/**
  * 字符串高级操作
  *
  * @author stephen
  * @create 2019-03-18 18:41
  * @since 1.0.0
  */
object StringDemo extends App {

  // 字符串插值
  val name = "zhang"
  println(s"My name is $name")

  // 多行字符串，按三次：shift+'
  val content =
    """
      |这是多行字符串
      |这是第二行
    """.stripMargin
  println(content)

}
